package com.qms.tubu.fragment.personal;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.qms.tubu.R;
import com.qms.tubu.activity.account.PersonalActivity;
import com.qms.tubu.adapter.DateAdapter;
import com.qms.tubu.adapter.DateListAdapter;
import com.qms.tubu.fragment.BaseFragment;
import com.qms.tubu.widget.LoadMoreRecyclerView;

/**
 * Created by Mad on 2015/7/24.
 */
public class MyDateFragment extends BaseFragment implements LoadMoreRecyclerView.OnLoadMoreListener{
    private LoadMoreRecyclerView mDateRecycler;
    private DateAdapter mAdapter;
    private LinearLayoutManager mLayoutManager;
    private ListView mDateList;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        rootView=inflater.inflate(R.layout.fragment_personal_list,container,false);
        mDateRecycler= (LoadMoreRecyclerView) rootView.findViewById(R.id.personal_list);
        return rootView;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        mDateRecycler.setOnLoadMoreListener(this);
        mLayoutManager=new LinearLayoutManager(rootView.getContext(),LinearLayoutManager.VERTICAL,false);
        mDateRecycler.setLayoutManager(mLayoutManager);
      //  mAdapter=new DateAdapter(getActivity());
    //    mDateRecycler.setAdapter(mAdapter);
       // mDateList.setAdapter(new DateListAdapter(rootView.getContext()));
    }


    @Override
    public void onLoadMore() {

    }
}
